package com.isunland.managesystem.ui;

import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.View;
import com.isunland.managesystem.R;

public class ProgressDialog extends DialogFragment {
  private static AlertDialog mDialog;

  @Override public Dialog onCreateDialog(Bundle savedInstanceState) {

    Builder builderSingle = new AlertDialog.Builder(getActivity());
    View v = getActivity().getLayoutInflater().inflate(R.layout.dialog_progress, null);
    builderSingle.setView(v);
    mDialog = builderSingle.create();
    return mDialog;
  }
}
